cmake_minimum_required(VERSION 3.10)
project(MyProject)

# 设置编译选项
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE Debug)









# 添加可执行文件 pageLibCreate
add_executable(pageLibCreate
    mainPageLib.cpp
    OffsetPage.cpp
    SimHash.cpp
    WebPages.cpp
    ../Configuration.cpp
    ../dict/split_tool.cpp
    ../mylog.cpp
)

# 添加头文件搜索路径
target_include_directories(pageLibCreate PRIVATE
    ../include
)

# 链接 pthread 库
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(pageLibCreate PRIVATE Threads::Threads)
# 链接log4cpp库
target_link_libraries(pageLibCreate PRIVATE log4cpp)

# 链接 tinyxml2 库
target_link_libraries(pageLibCreate PRIVATE tinyxml2)


